import request from "@/utils/request";

// 查询墙布列表
export function getQbGoodsList(query) {
  return request({
    url:
      "/app/userProduct/list?pageNumber=" +
      query.pageNum +
      "&pageSize=" +
      query.pageSize,
    method: "post",
    data: query.data,
  });
}
// 删除墙布
export function delQbGoodsList(projectIds) {
  return request({
    url: "/app/userProduct/" + projectIds,
    method: "delete",
  });
}

// 查询墙布货品详细
export function getQbGoodsListItem(projectId) {
  return request({
    url: "/app/userProduct/" + projectId,
    method: "get",
  });
}

// 新增墙布货品
export function addQbGoodsListItem(data) {
  return request({
    url: "/app/userProduct",
    method: "post",
    data: data,
  });
}

// 修改高端定制
export function updateQbGoodsListItem(data) {
  return request({
    url: "/app/userProduct",
    method: "put",
    data: data,
  });
}
